package com.play.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.play.common.result.CommonResult;
import com.play.service.IPrescriptionService;
import com.play.vo.request.PageRequest;

@RestController
@RequestMapping("/prescription")
public class PrescriptionController {

	@Autowired
	IPrescriptionService prescriptionService;
	
	@RequestMapping("index")
	public CommonResult index(@RequestBody PageRequest page) {
		return CommonResult.success(prescriptionService.selectPrescriptionList(page.getPage(), page.getPageSize(), null, null));
	}
}
